package com.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.domain.entity.ResponseResult;
import com.common.domain.entity.Role;
import com.common.domain.entity.RoleRequest;

import java.util.List;

/**
* @author pc
* @description 针对表【sys_role(角色信息表)】的数据库操作Service
* @createDate 2023-02-07 12:19:15
*/
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyList(Long userId);


    ResponseResult getAllRole(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult changeStatus(RoleRequest roleRequest);

    ResponseResult insertRole(Role role);

    ResponseResult getRole(Long id);

    ResponseResult updateRole(Role role);

    ResponseResult deleteRole(Long id);

    ResponseResult listAllRole();
}
